<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/11/8
 * Time: 19:30
 */
namespace app\Controller;
use core\request;
use core\view;
use core\model;

class Index
{
    private $request = null;
    public function __construct()
    {

    }

    /**
     * @param request $request
     */
    public function index(){
        $model =  new model();
        $result = $model->query('select * from accountinfo');
        var_dump($result);die;
        $arr = [
            'abc'=>'good',
            'efg'=>' world'
        ];
        view::assign('name','wwz');
       return view::fetch('Index/index',$arr);
    }
    public function list(){

    }
}


